package com.mycompany.inventory.pojo;

import org.zkoss.bind.annotation.DependsOn;

public class TaxScheme {
	
	private String Id;
	private String name;	
	private String remark;
	private String taxType;
	private int taxRate;
	
	
	public TaxScheme(String id, String name, String remark, String taxType,
			int taxRate) {
		Id = id;
		this.name = name;
		this.remark = remark;
		this.taxType = taxType;
		this.taxRate = taxRate;
	}
	
	public TaxScheme() {		
		Id = "";
		this.name = "";
		this.remark = "";
		this.taxType = "";
		this.taxRate = 0;
	}


	public void clear(){
		Id = "";
		this.name = "";
		this.remark = "";
		this.taxType = "";
		this.taxRate = 0;
	}
	
	public void copyValue(TaxScheme tax){
		Id = tax.getId();
		this.name = tax.getName();
		this.remark = tax.getRemark();
		this.taxType = tax.getTaxType();
		this.taxRate = tax.getTaxRate();
	}

	public String getId() {
		return Id;
	}

	public void setId(String id) {
		Id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getTaxType() {
		return taxType;
	}

	public void setTaxType(String taxType) {
		this.taxType = taxType;
	}

	public int getTaxRate() {
		return taxRate;
	}

	public void setTaxRate(int taxRate) {
		this.taxRate = taxRate;
	}
	
	public String toString(){
		return name;
	}
	
}
